package com.geek.javase.ch18.videodemo.junit;

import java.util.ArrayList;

/*
 *@Date 2025/11/5
 *@Author wangpeng
 *@Description TODO
 */
public class UserService {
    //登录
    public boolean login(String username, String password) {
        if("张三".equals(username) && "123".equals(password)) {
            return true;
        }
        return false;
    }
    //注册
    public boolean register(String username) {
        ArrayList<String> list = new ArrayList<>();
        boolean flag = list.add(username);
        System.out.println(list);
        return flag;
    }
}


